package com.ruoyi.system.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.Area;
import com.ruoyi.system.mapper.AreaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ContractPayDetailMapper;
import com.ruoyi.system.domain.ContractPayDetail;
import com.ruoyi.system.service.IContractPayDetailService;

/**
 * 付费模式明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-18
 */
@Service
public class ContractPayDetailServiceImpl extends ServiceImpl<ContractPayDetailMapper, ContractPayDetail> implements IContractPayDetailService
{
    @Autowired
    private ContractPayDetailMapper contractPayDetailMapper;

    /**
     * 查询付费模式明细
     * 
     * @param id 付费模式明细主键
     * @return 付费模式明细
     */
    @Override
    public ContractPayDetail selectContractPayDetailById(Long id)
    {
        return contractPayDetailMapper.selectContractPayDetailById(id);
    }

    /**
     * 查询付费模式明细列表
     * 
     * @param contractPayDetail 付费模式明细
     * @return 付费模式明细
     */
    @Override
    public List<ContractPayDetail> selectContractPayDetailList(ContractPayDetail contractPayDetail)
    {
        return contractPayDetailMapper.selectContractPayDetailList(contractPayDetail);
    }

    /**
     * 新增付费模式明细
     * 
     * @param contractPayDetail 付费模式明细
     * @return 结果
     */
    @Override
    public int insertContractPayDetail(ContractPayDetail contractPayDetail)
    {
        return contractPayDetailMapper.insertContractPayDetail(contractPayDetail);
    }

    /**
     * 修改付费模式明细
     * 
     * @param contractPayDetail 付费模式明细
     * @return 结果
     */
    @Override
    public int updateContractPayDetail(ContractPayDetail contractPayDetail)
    {
        return contractPayDetailMapper.updateContractPayDetail(contractPayDetail);
    }

    /**
     * 批量删除付费模式明细
     * 
     * @param ids 需要删除的付费模式明细主键
     * @return 结果
     */
    @Override
    public int deleteContractPayDetailByIds(Long[] ids)
    {
        return contractPayDetailMapper.deleteContractPayDetailByIds(ids);
    }

    /**
     * 删除付费模式明细信息
     * 
     * @param id 付费模式明细主键
     * @return 结果
     */
    @Override
    public int deleteContractPayDetailById(Long id)
    {
        return contractPayDetailMapper.deleteContractPayDetailById(id);
    }
}
